<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>首页</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport" content="width=device-width, user-scalable=no">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta name=”apple-mobile-web-app-status-bar-style” content=”default”/>
    <meta name=”apple-mobile-web-app-status-bar-style” content=”black”/>
    <meta name=”apple-mobile-web-app-status-bar-style” content=”black-translucent”/>
    <meta content="telephone=no" name="format-detection">
    <meta content="email=no" name="format-detection">
    <meta name="format-detection" content="telephone=no"/>
    <link href="${s.base}/mobile/css/weReward.css" rel="stylesheet"/>
    <script src="${s.base}/mobile/js/fontSize.js" type="text/javascript"></script>
</head>
<body>
<div class="peoContent">
    <div class="white-bar">
        <div class="user-Avatar"><img src="${headLogo}"></div>
        <h1>${name}</h1>
        <#if jobNum?? && jobNum !=''>
        <h2>工号：${jobNum}</h2>
        </#if>
        <div class="mainreward" style="margin-top:0.37rem; margin-bottom:0.35rem;" id="star">
        </div>
    </div>
    <div class="white-bar mart20" style=" padding:0 0.2rem;">
        <div class="apply-list">
            <ul>
                <#if verified >
                <li onclick="window.open('myQrCode?token=${token}&applyId=${applyId}','_self')">
                    <div class="apply-list-label"><img src="${s.base}/mobile/images/erweima.png"></div>
                    我的二维码
                    <div class="apply-list-more"><img src="${s.base}/mobile/images/fanye.png"></div>
                </li>
                </#if>
                <li onclick="window.open('myReward?token=${token}&applyId=${applyId}','_self')">
                    <div class="apply-list-label"><img src="${s.base}/mobile/images/sj.png"></div>
                    我的赏金
                    <div class="apply-list-more"><img src="${s.base}/mobile/images/fanye.png"></div>
                </li>
                <li onclick="window.open('myRecord?token=${token}&applyId=${applyId}','_self')">
                    <div class="apply-list-label"><img src="${s.base}/mobile/images/pingjia.png"></div>
                    我的评价
                    <div class="apply-list-more"><img src="${s.base}/mobile/images/fanye.png"></div>
                </li>
                <li onclick="window.open('myVerified?token=${token}&applyId=${applyId}','_self')">
                    <div class="apply-list-label"><img src="${s.base}/mobile/images/shimingrenzheng.png"></div>
                    员工认证
                    <div class="apply-list-more"><img src="${s.base}/mobile/images/fanye.png"></div>
                </li>
                <#if verified >
                <li onclick="window.open('myPassword?token=${token}&applyId=${applyId}','_self')">
                    <div class="apply-list-label"><img src="${s.base}/mobile/images/erweima.png"></div>
                    密码修改
                    <div class="apply-list-more"><img src="${s.base}/mobile/images/fanye.png"></div>
                </li>
                </#if>
            </ul>
        </div>
    </div>
</div>
</body>
<script src="${s.base}/mobile/js/jquery-2.1.4.min.js" type="text/javascript"></script>
<script>
    $(function () {
        start("star", parseFloat('${stars}').toFixed(1));
    });

    function start(id, score) {
        var str = '<div class="eva-star">';
        for (var i = 0; i < 5; i++) {
            var dif = score * 1 - i;
            if (dif >= 1) {
                str += '<span class="checked"></span>';
            }
            else if (dif < 1 && dif > 0) {
                str += '<span class="checked1"></span>';
            }
            else {
                str += '<span></span>';
            }
        }
        $("#" + id).html(str);
    }
</script>
</html>